<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\CutPdfController;
use App\Http\Controllers\IndexController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () { //访问主域名，跳转到登录页
    return redirect('/web');
});

Route::any('/help_word', [IndexController::class, 'helpWord']); //帮助文档

Route::any('/cut_pdf', [CutPdfController::class, 'cutPdf']); //分割pdf展示页面
Route::any('/upload_pdf', [CutPdfController::class, 'uploadPDF']); //pdf上传
Route::any('/check', [CutPdfController::class, 'check']); //检查分割的pdf页码合法性
Route::any('/cut_pdf_action', [CutPdfController::class, 'cutPdfAction']); //执行pdf分割
